package com.rundow.common.base.request;

import com.rundow.common.base.model.DriverInfo;
import com.rundow.common.base.valid.Insert;
import com.rundow.common.base.valid.Update;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.List;

@Getter
@Setter
public class ProfileDriverPointRequest {


    @NotBlank(message = "name can't be empty", groups = {Insert.class})
    @Pattern(regexp = "^[A-Za-z0-9\\u4e00-\\u9fa5][A-Za-z0-9\\u4e00-\\u9fa5-_#@/\\.\\|]{1,31}$", message = "Invalid name,contains invalid characters or length is not in the range of 2~32", groups = {Insert.class, Update.class})
    private String name;
    @NotBlank(message = "tablename can't be empty", groups = {Insert.class})
    private String tableName;

    @NotBlank(message = "driver id can't be empty", groups = {Insert.class})
    private String driverId;

    private List<DriverInfo> driverInfoList;

//    @NotBlank(message = "pointId id can't be empty", groups = {Insert.class})
    private List<String> pointIds;


}
